<?php echo $session->flash(); ?>
<?php
echo $form->create(array(
	'id'		=> 'frm',
	'action'	=> 'edit',
	'enctype'	=> 'multipart/form-data',
));
?>
 	<div class="input">
      <label><?php echo __('Title[EN]', true); ?></label>
      <?php echo $this->Form->input('News.title_eng', array('type' => 'text', 'label' => false, 'div' => false)); ?>
  	</div>
  	<div class="input">
      <label><?php echo __('Title[VN]', true); ?></label>
      <?php echo $this->Form->input('News.title_vie', array('type' => 'text', 'label' => false, 'div' => false)); ?>
  	</div>
 	<div class="input">
      <label><?php echo __('Description[EN]', true); ?></label>
      <?php echo $this->Form->input('News.description_eng', array('type' => 'text', 'label' => false, 'div' => false)); ?>
  	</div>
  	<div class="input">
      <label><?php echo __('Description[VN]', true); ?></label>
      <?php echo $this->Form->input('News.description_vie', array('type' => 'text', 'label' => false, 'div' => false)); ?>
  	</div>
 	<div class="input">
		<label>Image file(<300kb)</label>
		<?php if(!empty($this->data['News']['image'])) { ?>
			<img src="<?php echo IMG_URL .'/news/'. $this->data['News']['image']; ?>" width="60px" />
		<?php } ?>
		<?php
			echo $form->input(
				'News.image',
				array(
					'type'		=> 'file',
					'label'		=> false,
					'div'		=> false,
					'name'		=> 'upload'
				)
			);
		?>
   	</div>

    <div class="input">
      <label><?php echo __('Content[EN]', true); ?></label>
      <?php
			$spaw = new SpawEditor('data[News][content_eng]', $this->data['News']['content_eng']);
			$spaw->height = '200px';
			$spaw->show();
		?>
	</div>
	<div class="input">
      <label><?php echo __('Content[VN]', true); ?></label>
      <?php
			$spaw2 = new SpawEditor('data[News][content_vie]', $this->data['News']['content_vie']);
			$spaw2->height = '200px';
			$spaw2->show();
		?>
	</div>
	<div class="input">
      <label><?php echo __('Tag', true); ?></label>
      <?php echo $this->Form->input('News.tag', array('type' => 'text', 'label' => false, 'div' => false)); ?>
  	</div>
	<div class="input" align="center" >
      <?php echo $form->button('', array('class'=>'submit', 'type'=>'submit', 'id'=>'regSubmit')); ?>
     	<?php echo $form->button('', array('class'=>'reset', 'type'=>'reset')); ?>
    </div>
    <?php echo $form->hidden('News.id'); ?>
<?php echo $form->end(); ?>

